<!DOCTYPE html>
<html>

        <head>
                <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
                <title>无人机视频流 flv</title>
                <script src="js/flv.min.js"></script>
        </head>

        <body>
                <div class="mainContainer">
                        <video id="videoElement" class="centeredVideo"
                                 controls autoplay width="1024" height="576"
                                 style="display: block;width: 1024px;height: 576px;margin-left: auto;margin-right: auto;margin-bottom: auto;">
                        </video>
                </div>
                <br>
                <script>
                        var player = document.getElementById('videoElement');
                        if(flvjs.isSupported()) {
                                var flvPlayer = flvjs.createPlayer({
                                        type: 'flv',
                                        "islive": true,
                                        // url: "https://live.njia.org.cn/uav/10000265.flv?auth_key=1606357345892-0-0-a0d82a5cfc33da18fe0890f96971638c",
										url: //"http://10.30.7.52:9092/hls/video.m3u8",
"http://10.30.7.52:9092/live?port=1935&app=live&stream=video",
                                });
                                flvPlayer.attachMediaElement(videoElement);
                                flvPlayer.load(); //加载
                        } 
            //无人机数据存在 MongoDB iot zs_video
                </script>
        </body>

</html>
